import { ImgS } from "../../components/Imgs/img";
import fs from "fs";

export default async function Imags() {
  const imgs = fs.readdirSync("public/imgs/");
  const imgsUrls = imgs.map((img: string) => `/imgs/${img}`) as string[];

  return (
    <div className="px-2 flex justify-center bg-[url('/home-light-bg.webp')] bg-cover bg-center">
      <ImgS urls={imgsUrls} />
    </div>
  );
}
